Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

225
Visualizações
Uncaught TypeError: Class extends value [object Object] is not a constructor or null" on SNOWPACK build JS of TDA-API-CLIENT
Uncaught TypeError: Class extends value [object Object] is not a constructor or null
    at tda-api-client.v2.1.3.js:3245:38
    at createCommonjsModule (tda-api-client.v2.1.3.js:20:5)
    at tda-api-client.v2.1.3.js:3186:21 

I will be going down the error stack. # 1-3

//1.   class StreamDataTDA extends events_1.default { //<--- error occurs at default
   constructor(streamConfig) {(...)}

//2. function createCommonjsModule(fn, basedir, module) {
return module = {
    path: basedir,
    exports: {},
    require: function (path, base) {
        return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
    }
    }, fn(module, module.exports), module.exports; //<--- error on this line
}

//3. var streamDataTDA = createCommonjsModule(function (module, exports) {

Tda-api-client is a npm module that I installed. However, when it came to snowpack it's giving me this error. Is there a config that avoids this "misbuild" by snowpack?

Thank you for your assistance

about 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda